@extends('public.father')
@section('content')
    <div class="container">
        <form action="{{route('blog.update',$blog->id)}}" method="post">
            @csrf
            @method('PATCH')
            <div class="card">
                <div class="card-header">
                    编辑文章
                </div>
                <div class="card-block">
                    <div class="form-group">
                        <label for="exampleInputEmail1">标题</label>
                        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="" name="title" value="{{$blog['title']}}">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">内容</label>
                        <textarea name="content" id="" class="form-control" cols="30" rows="10">{{$blog['content']}}</textarea>
                    </div>
                </div>
                <div class="card-footer text-muted">
                    <button type="submit" class="btn btn-primary">编辑</button>
                </div>
            </div>
        </form>

    </div>
@endsection